<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			
				var nameInput = "dasds";
				var reg =/^\w{5,10}$/;
				var result = reg.test(nameInput);
				console.log(result);
		</script>
	</head>
	<body>
	</body>
</html>
